-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
API-39286-rename-poa-pdf #18259
API-39286-rename-poa-pdf #18259
Conversation
* Updates naming for v1 2122 POA forms. * Adds optional param in bd.rb to handle tracking api version being used * Adds test for new naming pattern modified: modules/claims_api/app/sidekiq/claims_api/v1/poa_form_builder_job.rb modified: modules/claims_api/lib/bd/bd.rb modified: modules/claims_api/spec/lib/claims_api/bd_spec.rb
…to track when the job is triggered from that spot
@@ -12,14 +12,14 @@ class PoaVBMSUploadJob < ClaimsApi::ServiceBase | |||
# If successfully uploaded, it queues a job to update the POA code in BGS, as well. | |||
# | |||
# @param power_of_attorney_id [String] Unique identifier of the submitted POA | |||
def perform(power_of_attorney_id) | |||
def perform(power_of_attorney_id, action: 'post') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Has approx 12 statements - TooManyStatements
it 'the fileName ends in representative.pdf' do | ||
expect(json_body['data']['fileName']).to end_with('_representative.pdf') | ||
end | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not entirely sure this second test is needed since this scenario shouldn't happen. Wanted to include it just to be safe. If anyone feels strongly about removing it I am open to that but wanted to error on the side of playing it safe and making sure this would be handled.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
context 'the doc type is 21-22' do | ||
let(:pdf_path) { 'modules/claims_api/spec/fixtures/21-22A/signed_filled_final.pdf' } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would this be
context 'the doc type is 21-22' do | |
let(:pdf_path) { 'modules/claims_api/spec/fixtures/21-22A/signed_filled_final.pdf' } | |
context 'the doc type is 21-22' do | |
let(:pdf_path) { 'modules/claims_api/spec/fixtures/21-22/signed_filled_final.pdf' } |
for completenessʼ sake?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, nice catch, committed it
Co-authored-by: Tyler <[email protected]>
Summary
Related issue(s)
API-39286
Testing done
Testing notes
_representative
replacing the doc typeWhat areas of the site does it impact?
Acceptance criteria
Requested Feedback
(OPTIONAL)What should the reviewers know in addition to the above. Is there anything specific you wish the reviewer to assist with. Do you have any concerns with this PR, why?